<?php /* Smarty version 2.6.26, created on 2015-08-01 01:34:17
         compiled from index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'index.html', 60, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<link rel="stylesheet" href="./Public/Home/Css/list.css" />

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../Common/nav.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

	
	<div id='location'>
		<a href="index.php?c=list&cid=0">全部分类</a>
		<?php unset($this->_sections['k']);
$this->_sections['k']['loop'] = is_array($_loop=$this->_tpl_vars['parentsCate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['k']['name'] = 'k';
$this->_sections['k']['show'] = true;
$this->_sections['k']['max'] = $this->_sections['k']['loop'];
$this->_sections['k']['step'] = 1;
$this->_sections['k']['start'] = $this->_sections['k']['step'] > 0 ? 0 : $this->_sections['k']['loop']-1;
if ($this->_sections['k']['show']) {
    $this->_sections['k']['total'] = $this->_sections['k']['loop'];
    if ($this->_sections['k']['total'] == 0)
        $this->_sections['k']['show'] = false;
} else
    $this->_sections['k']['total'] = 0;
if ($this->_sections['k']['show']):

            for ($this->_sections['k']['index'] = $this->_sections['k']['start'], $this->_sections['k']['iteration'] = 1;
                 $this->_sections['k']['iteration'] <= $this->_sections['k']['total'];
                 $this->_sections['k']['index'] += $this->_sections['k']['step'], $this->_sections['k']['iteration']++):
$this->_sections['k']['rownum'] = $this->_sections['k']['iteration'];
$this->_sections['k']['index_prev'] = $this->_sections['k']['index'] - $this->_sections['k']['step'];
$this->_sections['k']['index_next'] = $this->_sections['k']['index'] + $this->_sections['k']['step'];
$this->_sections['k']['first']      = ($this->_sections['k']['iteration'] == 1);
$this->_sections['k']['last']       = ($this->_sections['k']['iteration'] == $this->_sections['k']['total']);
?>
			<?php if ($this->_sections['k']['last']): ?>
			&gt;&nbsp;<?php echo $this->_tpl_vars['parentsCate'][$this->_sections['k']['index']]['title']; ?>
&nbsp;&nbsp;
			<?php else: ?>
			&gt;&nbsp;<a href="index.php?c=list&cid=<?php echo $this->_tpl_vars['parentsCate'][$this->_sections['k']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['parentsCate'][$this->_sections['k']['index']]['title']; ?>
</a>&nbsp;&nbsp;
			<?php endif; ?>
		<?php endfor; endif; ?>	
	</div>
	
<!--------------------中部-------------------->
	<div id='center'>
		<div id='left'>
			<div id='cate-list'>
				<p class='title'>按分类查找</p>
				<ul>
					<?php $_from = $this->_tpl_vars['category']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
					<li>
						<a href="index.php?c=list&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
"><?php echo $this->_tpl_vars['v']['title']; ?>
</a>
					</li>
					<?php endforeach; endif; unset($_from); ?>
				</ul>
			</div>
			<div id='answer-list'>
				<ul class='ans-sel'>
					<li <?php if ($_GET['w'] == 0): ?> class='on' <?php endif; ?> >
						<a href="./index.php?c=list&cid=<?php echo $_GET['cid']; ?>
&w=0">待解决问题</a>
					</li>
					<li  <?php if ($_GET['w'] == 1): ?> class='on' <?php endif; ?> >
						<a href="./index.php?c=list&cid=<?php echo $_GET['cid']; ?>
&w=1">已解决</a>
					</li>
					<li  <?php if ($_GET['w'] == 2): ?> class='on' <?php endif; ?> >
						<a href="./index.php?c=list&cid=<?php echo $_GET['cid']; ?>
&w=2">高悬赏</a>
					</li  >
					<li  <?php if ($_GET['w'] == 3): ?> class='on' <?php endif; ?> >
						<a href="./index.php?c=list&cid=<?php echo $_GET['cid']; ?>
&w=3">零回答</a>
					</li>
				</ul>
				<!-- 待解决问题 -->
				<table>
					<tr>
						<th class='t1'>标题</th>
						<th>回答数</th>
						<th>时间</th>
					</tr>
					<?php $_from = $this->_tpl_vars['askData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
						<tr>
							<td class='t1 cons'>
								<a href="./index.php?c=show&asid=<?php echo $this->_tpl_vars['v']['asid']; ?>
">
									<b><?php echo $this->_tpl_vars['v']['reward']; ?>
</b><?php echo $this->_tpl_vars['v']['content']; ?>
</a>&nbsp;&nbsp;[<?php echo $this->_tpl_vars['v']['title']; ?>
]
							</td>
							<td><?php echo $this->_tpl_vars['v']['answer']; ?>
</td>
							<td><?php echo ((is_array($_tmp=$this->_tpl_vars['v']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
</td>
						</tr>
					<?php endforeach; endif; unset($_from); ?>

					<tr class='page'>
						<td colspan='3'>
							<a href="">1</a>
							<a href="">2</a>
							<a href="">3</a>
						</td>
					</tr>
				</table>

			</div>
		</div>

		<!-- 右侧 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../Common/right.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!-- ---右侧结束---- -->
	</div>
<!--------------------中部结束-------------------->

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>